package com.gjm.order;

import com.gjm.product.api.ProductServiceApi;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 指定扫描的是哪个客户端
 * 由于 ProductServiceApi 不在 com.gjm.order 这个路径下，就不会被 order-service 扫描到，就无法进行注入
 */
@EnableFeignClients(clients = {ProductServiceApi.class})
@SpringBootApplication
public class OrderServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(OrderServiceApplication.class, args);
    }
}